package Cafezam;

public class J15Cho5Printers {
	public static void main(String[] args)
	{
		J15Printer p = new J15Printer();
		p.print();
		J15InkJetPrinter HP = new J15InkJetPrinter();
		HP.print();
		J15LaserPrinter LJ = new J15LaserPrinter();
		LJ.print();
	}
}
 class J15Printer{
	 private String maker;
	 private String model;
	 private String interfaces;
	 private int count;
	 private int remains;
	 private String dateCreated;
	 
	 public void print()
	 {
		 System.out.println("프린트로 출력완료");
		  
	 }	 
 }
 class J15InkJetPrinter extends J15Printer
 {
	 /*private String maker;
	 private String model;
	 private String interfaces;
	 private int count;
	 private int remains;
	 */
  //  @Override //컴파일러를 위한 주석
    
	 public void print()
	 {
		 System.out.println("잉크젯 프린터로 출력완료");
	 }
 }
 class J15LaserPrinter extends J15Printer{
	 /*private String maker;
	 private String model;
	 private String interfaces;
	 private int count;
	 private int remains;*/
	 //@Override
	 public void print()
	 {
		 System.out.println("레이저 프린터로 출력완료");
	 }
 }
 